home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- from PyQt4.QtCore import *
- from PyQt4.QtGui import *
-
- class ReadOnlyRadioButton(QRadioButton):
-
- def __init__(self, parent):
- QRadioButton.__init__(self, parent)
- self.setFocusPolicy(Qt.NoFocus)
- self.clearFocus()
-
-
- def mousePressEvent(self, e):
- if e.button() == Qt.LeftButton:
- return None
- QRadioButton.mousePressEvent(e)
-
-
- def mouseReleaseEvent(self, e):
- if e.button() == Qt.LeftButton:
- return None
- QRadioButton.mouseReleaseEvent(e)
-
-
- def mouseMoveEvent(self, e):
- pass
-
-
- def keyPressEvent(self, e):
- if e.key() not in (Qt.Key_Up, Qt.Key_Left, Qt.Key_Right, Qt.Key_Down, Qt.Key_Escape):
- return None
- QRadioButton.keyPressEvent(e)
-
-
- def keyReleaseEvent(self, e):
- pass
-
-
-